package com.example.talkheart

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView

class AppointInfoActivity : AppCompatActivity() {
    private val infoReturnButton: Button by lazy { findViewById<Button>(R.id.infoReturnButton) }
    private val appointerName: TextView by lazy { findViewById<TextView>(R.id.appointerName) }
    private val appointerTime: TextView by lazy { findViewById<TextView>(R.id.appointerTime) }
    private val appointerStatus: TextView by lazy { findViewById<TextView>(R.id.appointerStatus) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_appoint_info)

        appointerName.text = intent.getStringExtra("name")
        appointerTime.text = intent.getStringExtra("time")
        appointerStatus.text = "良好"

        infoReturnButton.setOnClickListener { finish() }
    }
}